package cn.magic.basic.constants;


/**
* @Description: 公共的常量类
* @Author: Mr.pc
* @Version: 1.0
* @Date:  2022/7/6 12:27
*/
public class BaseConstants {

    // 短信平台的常用类
    public class SmsConstant {
        // 发送手机验证码的用户名常量
        public static final String SMS_UID = "pc66";
        // 发送手机验证码的密钥常量
        public static final String SMS_KEY = "4EC2478E246DA4A9035F4B8E9655B8A0";
    }
    // 注册相关的常用类
    public class VerifyCodeConstant{
        // 注册时手机验证码常量
        public static final String BUSINESS_REGISTER_KEY = "register:";
        // 微信登录时验证码常量
        public static final String BUSINESS_BINDER_KEY = "binder:";
        // 登录时手机验证码常量
        public static final String BUSINESS_LOGIN_KEY = "login:";

    }

    // 微信登录接口相关的常用类
    public class WxConstant{
        // 获取access_token的URL地址
        public static final String TOKEN_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
        public static final String WXUSER_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID";

        // 微信的appId
        public static final String APPID = "wxd853562a0548a7d0";

        // 微信的密钥
        public static final String SECRET = "4a5d5615f93f24bdba2ba8534642dbb6";
    }

}
